<%@ page language="java" contentType="text/html; charset=UTF-8" import="java.util.*"
	pageEncoding="UTF-8"%>
<%@ include file="../../../common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<sfa:mainTitle></sfa:mainTitle>
		<%@ include file="../../../common/meta.jsp"%>
<script type="text/javascript">
$(function(){	
	$("#Check_Finish").click(function(){
		var saletrantakeid = $("#SALETRANTAKEID").val();
		$.ajax({
					url : "${path}/productandtrain/lecturer/index/intodata",
					type : 'POST',
					timeout : 10000,
					data : {saletrantakeid:saletrantakeid},
					success: function(result){		
						result = '(' + result + ')';
						var obj = eval(result);
							//debugger;
							//alert(obj.result);
						 	if(obj.result == true){
							art.dialog( {
								icon : "succeed",
								content : "总共"+obj.rowCount+"条记录,成功插入"+obj.successCount+"条",
								lock : true,
								ok : function() {								   
					    			window.location.href="${path}/productandtrain/lecturer/index";									
								},
								cancle:true
							});
							}else{
							art.dialog( {
										icon : "error",
										content : obj.message,
										lock : true,
										ok : true
									});
							}
						  
					    },   
    				error: function(){   
					    alert('请联系管理员');   
					}
				});
	});
});
</script>
	</head>
	<body id="master">
		<sfa:mainHeader></sfa:mainHeader>
		
		<div class="webpart3 contentarea">
			<div class="webpart-head">
				<div class="webpart-head-item">
					导入核对
					
					<div class="tools-btn" style="margin-right: 8px; margin-bottom: -3px; margin-top: 5px;">
							<a href="#" class="linkbtn" onclick="location.href='${path}/productandtrain/lecturer/index/into/${saletrantakeid}'"><span>
									返回</span> </a>
						</div>
				</div>
						
			</div>		
		<div class="webpart-main">
    	<div class="webpart-main-item" style="padding-top: 12px; text-align: center;">	
			<div class="search">	
							 
				<table cellspacing="0" cellpadding="0" class="trStyleTable dg_borderstyle"
				 style="margin-top: 15px; width: 100%;">
					<tbody>
						<tr>
						<th width="100px">学员身份证号码或代理人编号</th>
						<th>学员姓名</th>
						</tr>
					<c:forEach items="${listFile}" var="items">
						<tr class="gray datarow">
							<c:forEach items="${items}" var="data">
							    <td>${data}</td>							    
							</c:forEach>
						</tr>
					</c:forEach>
					</tbody>
				</table>
			<input type="button" class="linkbtn2" id="Check_Finish" style=" margin-left: 85%; margin-top: 5px;" value="核对完成">
			</div>
		</div>
		<input type="hidden" id="SALETRANTAKEID" name="SALETRANTAKEID" value="${saletrantakeid}" />
		</div>
			<div class="webpart-foot">
				<div class="webpart-foot-item">
				</div>
			</div>
		</div>
   		<sfa:mainFooter></sfa:mainFooter>
	</body>
</html>

